/**
 * 
 */
package net.toocruel.iqismart.dao;

import net.toocruel.iqismart.dao.base.BaseRepository;
import net.toocruel.iqismart.entity.rbac.User;
import org.springframework.stereotype.Repository;

/**
 * @author toocruel
 *
 */
@Repository
public interface UserRepository extends BaseRepository<User> {

	User findById(Long id);
	User findByUsername(String username);
	int deleteByIdIn(Long[] id);

	User findByEmail(String email);

	User findByMobile(String mobile);

//	@Query(value = "select * from user",nativeQuery = true)
//    List<User> getHotUsers();
}
